package com.amt.iptvsetting.dagger;


import android.app.Activity;

import com.amt.iptvsetting.business.main.MainActivity;
import com.amt.iptvsetting.business.main.dagger.MainActivityComponent;
import com.app.weexlearnmodule.ZWeexLearnActivity;
import com.app.weexlearnmodule.dagger.WeexLearnComponent;

import dagger.Binds;
import dagger.Module;
import dagger.android.ActivityKey;
import dagger.android.AndroidInjector;
import dagger.multibindings.IntoMap;

@Module(subcomponents = {MainActivityComponent.class, WeexLearnComponent.class})
abstract class ActivityModule {

    @Binds
    @IntoMap
    @ActivityKey(MainActivity.class)
    abstract AndroidInjector.Factory<? extends Activity> bindMainActivity(MainActivityComponent.Builder factory);

    @Binds
    @IntoMap
    @ActivityKey(ZWeexLearnActivity.class)
    abstract AndroidInjector.Factory<? extends Activity> bindWeexLearnActivity(WeexLearnComponent.Builder factory);




}
